<template>
  <div style="margin-top: 5px;margin-left: 5px">
    <a-textarea v-model:value="value" placeholder="Basic usage" :rows="18"/>
    <a-button style="margin-top: 10px;margin-right: 10px;float: right;" @click="getTextBtn">转换</a-button>
  </div>
</template>

<script>
import {ref} from "vue";

export default {
  name: "ToText",
  setup(){
    let value = ref('')
    const getTextBtn = ()=>{
      window.go.main.App.GetText(value.value).then(res=>{
        value.value = res.data.join('\n')
      })
    }
    return{
      value,
      getTextBtn
    }
  }
}
</script>

<style scoped>

</style>